FileSystemPackageStore.DeletePackage Method

Delete a package that was previously added to the store. Deleted information cannot be recovered.

Parent Type: FileSystemPackageStore

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public void DeletePackage (
PackageItemIdentifier packageId

)

Parameters

packageId

The package to remove.

Exceptions
Exception type Condition
LearningStoreItemNotFoundException

Thrown if the packageId does not represent a package in the store.

LearningStoreConstraintViolationException

Thrown if the package cannot be deleted from LearningStore because there are other items in the store that depend upon it. For instance, a package for which there are attempts in LearningStore, cannot be deleted.

Remarks

If a file in the package cannot be deleted, the FileDeletionFailed event will be raised.